﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Threading.Tasks;

namespace ShanNiang.Service.LoginModels.Responses
{
    /// <summary>
    /// 来自于ids的Token
    /// </summary>
    public class IdsToken
    {
        public IdsToken()
        {
            CreatedTime = DateTime.Now;
        }
        /// <summary>
        /// 通过token
        /// </summary>
        public string? AccessToken { get; set; }
        /// <summary>
        /// 用户资料token
        /// </summary>
        public string? IdentityToken { get; set; }
        /// <summary>
        /// 刷新token
        /// </summary>
        public string? RefreshToken { get; set; }
        /// <summary>
        /// 失效时间 单位秒
        /// </summary>
        public int ExpiresIn { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTimeOffset CreatedTime { get;  set; }
    }
}
